package HLLib.device;

import HLCode.HLClass;
import HLCode.HLClassManager;
import HLCode.HLClassManager_H;
import HLCode.HLLibObject;

public class HLDeviceMotionItem extends HLLibObject {
    public HLClass GetClass(HLClassManager classManager) {
        return classManager.GetLibClass(HLClassManager_H.CLASS_GROUP_TYPE_LIB_DEVICE, HLClassManager_H.LIB_CLASS_DEVICE_DeviceMotionItem);
    }

    public int GetInt(int index) {
        switch (index) {
        case 0: {
            return rotationRateX;
        }
        case 1: {
            return rotationRateY;
        }
        case 2: {
            return rotationRateZ;
        }
        case 3: {
            return roll;
        }
        case 4: {
            return pitch;
        }
        case 5: {
            return yaw;
        }
        case 6: {
            return accelerationX;
        }
        case 7: {
            return accelerationY;
        }
        case 8: {
            return accelerationZ;
        }
        }
        return 0;
    }

    public void SetInt(int index, int value) {
        switch (index) {
        case 0: {
            rotationRateX = value;
            return;
        }
        case 1: {
            rotationRateY = value;
            return;
        }
        case 2: {
            rotationRateZ = value;
            return;
        }
        case 3: {
            roll = value;
            return;
        }
        case 4: {
            pitch = value;
            return;
        }
        case 5: {
            yaw = value;
            return;
        }
        case 6: {
            accelerationX = value;
            return;
        }
        case 7: {
            accelerationY = value;
            return;
        }
        case 8: {
            accelerationZ = value;
            return;
        }
        }
    }

    public int rotationRateX;

    public int rotationRateY;

    public int rotationRateZ;

    public int roll;

    public int pitch;

    public int yaw;

    public int accelerationX;

    public int accelerationY;

    public int accelerationZ;
}
